/**
 * 
 */
package com.hexacta.hrs.web.util;

import javax.servlet.jsp.PageContext;

import org.displaytag.decorator.DisplaytagColumnDecorator;
import org.displaytag.exception.DecoratorException;
import org.displaytag.properties.MediaTypeEnum;

/**
 * Decorator para la columna de Time Off Type
 * 
 * @author vschimpf
 *
 */
public class TimeOffTypesDecorator implements DisplaytagColumnDecorator {
	
	public Object decorate(Object arg0, PageContext arg1, MediaTypeEnum arg2)
			throws DecoratorException {
		
		if (arg0 == null) { 
			return "";
		}
		
		return arg0.toString().replaceAll("_", " ");
	}
}